package cn.isjinhao.se.sql.grammar.statement;

import cn.isjinhao.se.sql.grammar.CurdStatement;
import cn.isjinhao.se.sql.lexical.token.Token;

/**
 * @Author ISJINHAO
 * @Date 2021/3/2 19:56
 */
public abstract class Unary extends CurdStatement {

    private final Token operator;
    private final CurdStatement curdStatement;

    public Unary(Token operator, CurdStatement curdStatement) {
        this.operator = operator;
        this.curdStatement = curdStatement;
    }

    public Token getOperator() {
        return operator;
    }

    public CurdStatement getSelectStatement() {
        return curdStatement;
    }

}
